<?php

?>
<style  type="text/css">
#trailors-text a:link{
 font-size:11px;
 font-weight:bold;
 color:black;
}
#trailors-text a:hover{
 font-size:11px;
 font-weight:bold;
 color:#FE6809;
 text-decoration: none;
}
#trailors-text a:visited{
 font-size:11px;
 font-weight:bold;
 color:black;
}
#trailors-text a:active{
 font-size:11px;
 font-weight:bold;
 color:#FE6809;
 text-decoration: none;
}
#trailors-text{
 font-size:11px;
 font-weight:bold;
 color:black;
 
}
#trailors-text a:active{
 font-size:11px;
 font-weight:bold;
 color:black;
}
#trailors-text2{
 font-size:11px;
 font-weight:bold;
 color:black;
}

#trailors-text1 a:hover{
 font-size:11px;
 font-weight:bold;
 color:white;
}
#trailors-text1 a:link{
 font-size:11px;
 font-weight:bold;
 color:white;
}
#trailer_videos{
width: 200px;
height: 150px;
border:1px solid red;
}
#image_trai{

padding-top: 10px;
}
</style>
<table cellpadding="0" cellspacing="0" >
	<tr>
		<td id="content-header-left" align='center'>Recent Trailers</td>
		<? if(empty($details)){
			echo 'No trailers';
		}else{ $count=0;
		foreach($details as $row):?>
		<td  id='content-header-center' align='center'><?=ucfirst($row->movie_name)?></td>
		<? if($count==0){
			break;
		}
		endforeach; }?>
		<td id="content-header-right" ></td>
	</tr>	
	<tr>
		<td bgcolor="#FFF8E6" height="400" valign="top">
		  <table>
		  	<? if(empty($trailors_data)){
		  		echo 'No data found';
		  	}else{
		  	 foreach ($trailors_data as $row): ?>
		  	 <tr>
		       <td><img src="<?=base_url();?>assets/imgs/button-img.gif" /></td>
			   		
			 <td class="sidelinks"><a href="<?=base_url();?>trailors/details/<?=$row->id ?>">
		  		<? if(strlen($row->movie_name)>=10){
		  		echo ucfirst(substr($row->movie_name,0,10)."..");
			}else{
				echo ucfirst($row->movie_name);
			}?>
		  	</a></td>
		     		 </tr>

		  	<?
		  	endforeach; 
			}?>
			 </table>
		</td>
		<td bgcolor="#FFFFFF" colspan='' valign="top">
			<table valign="top" cellpadding="8" cellspaceing="4">
				<tr>
					<td valign="top" width="100%" bgcolor="#FAF1B0">
						<table>
								<? foreach($details as $row):?>
								<tr>
									<td><img src="<?=base_url();?>/assets/imgs/IMG.gif"></td>
									<td ><a href="<?=base_url(); ?>trailors/details/<?=$row->movie_id ?>/<?=$row->t_id ?>" class="pagelink"><?=ucfirst(trim_name($row->trailor_name,15))?></a>(<?=$row->time_sec?>)</td>
								 </tr>	
								<? endforeach; ?>
		                      
		                   </table>
		            </td >  
		           	<td  bgcolor="#FFF8E6"><?=$videoplayer?></td> 
		        </tr>
		        <tr><td  id='content-header-center' align='center' colspan='2'>Recent Movies</td></tr>
		     	<tr>
		  			<td id="trailors-text2" bgcolor="#FFF8E6" colspan='2'width="500%" height="100">
		  				<table>
		  					<tr>
		  					<? $count=1; foreach($Recent_Trailors as $recent):
		  					?>
		  						<td>
		  							<div id="trailer_videos" align='center'>
		  							<a href="<?=base_url().'trailors/details/'.$recent['id'] ?>"><img border="0" id="image_trai" src="<?=base_url();?>assets/trailors/preview_image/trai_imge<?=$recent['t_id'] ?>_thumb.jpg"></a>
		  							<br> <a href="<?=base_url().'trailors/details/'.$recent['id'] ?>" class="pagelink" title="<?=ucfirst($recent['movie_name']) ?>"><?=trim_name(ucfirst($recent['movie_name']),18); ?></a>
		  							</div>
		  						</td>
		  						<? 
		  						if($count%3==0)
		  						{
		  							echo "</tr><tr>";
		  						}
		  						if($count==6){
		  							break;
		  						}else{
		  							$count++;
		  						} 
		  						
		  						endforeach;
		  							?>

		  					
		  				</table>
		  			</td>
		  			<!--<div id="trailer_videos" align="center" style="margin: -150px 0px 0px 205px">
		  			
		  			<img id="image_trai" src="<?=base_url();?>assets/trailors/preview_image/trai_imge80_thumb.jpg">
		  			</div>
		  			<div id="trailer_videos" align="center" style="margin: -150px 0px 5px 410px">
		  			
		  			<img id="image_trai" src="<?=base_url();?>assets/trailors/preview_image/trai_imge80_thumb.jpg">
		  			
		  			</div>
		  			-->
			    </tr>
	      		<tr>
		      		<td bgcolor="#FF9561" colspan="3" width="500%" height="20" align="right" id="trailors-text1">
		      			<a href="#"> >>>>>>>>>>>>>>>>>>>>>>>>Enjoy!</a>
		      		</td>
		   		</tr>
		  	</table>	
 		</td>	
		<td bgcolor="#FFF8E6" align="center" valign="top">
		<!-- Begin: AdBrite, Generated: 2009-06-16 5:48:41  -->
<script type="text/javascript">
var AdBrite_Title_Color = 'E1771E';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'FFCC66';
var AdBrite_URL_Color = '008000';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1219263&zs=3132305f363030&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<div><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1219263&afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your Ad Here</a></div>
<!-- End: AdBrite -->
		</td>
	</tr>
</table>